﻿@model NextInventory.Model.Inventory.ModelModel

<script src="~/Scripts/jquery-1.7.1.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
<div id="modelDetails">
    @using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "modelDetails" }))
    {
        @Html.HiddenFor(model => model.ModelId)
        @Html.ValidationSummary(false)

        <table border="0" cellpadding="0" cellspacing="0" id="id-form">
            <tr>
                <th>
                    @Html.LabelFor(model => model.Name)

                </th>
                <td>
                    @Html.TextBoxFor(model => model.Name, new { @class = "inp-form" })
                    @Html.ValidationMessageFor(model => model.Name)

                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(model => model.Description)
                </th>
                <td>
                    @Html.TextBoxFor(model => model.Description, new { @class = "inp-form" })
                    @Html.ValidationMessageFor(model => model.Description)
                </td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <input type="submit" value="" class="form-submit" />
                    <input type="reset" value="" class="form-reset" />
                </td>
            </tr>
        </table>
    }
</div>
